
import csv
import requests


#https://qiita.com/okadate/items/c36f4eb9506b358fb608

resp = requests.get("http://archive.ics.uci.edu/ml/machine-learning-databases/audiology/audiology.standardized.data")
list = resp.text.split("\n")
list = [line.split(",") for line in list]
# for row in list :
# 	print row + "\n\n\n"
# f = open("tmp", "w")
# f.write(resp.text)
with open('uci.csv', 'w') as f:
	writer = csv.writer(f)
	writer.writerows(list)